/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.MdsProject.DomainModels
{
    [Entity(TableCnName = "数据采集服务",TableName = "Mds_DataServe",DetailTable =  new Type[] { typeof(Mds_DataServeConfig)},DetailTableCnName = "服务配置",DBServer = "ServiceDbContext")]
    public partial class Mds_DataServe:ServiceEntity
    {
        /// <summary>
       ///ID
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long DataServeId { get; set; }

       /// <summary>
       ///服务名
       /// </summary>
       [Display(Name ="服务名")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string ServeName { get; set; }

       /// <summary>
       ///服务类型
       /// </summary>
       [Display(Name ="服务类型")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ServeType { get; set; }

       /// <summary>
       ///IP地址
       /// </summary>
       [Display(Name ="IP地址")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       public string Ip { get; set; }

       /// <summary>
       ///端口
       /// </summary>
       [Display(Name ="端口")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Port { get; set; }

       /// <summary>
       ///请求基础路径
       /// </summary>
       [Display(Name ="请求基础路径")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string BaseUrl { get; set; }

       /// <summary>
       ///自动读取
       /// </summary>
       [Display(Name ="自动读取")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? IsAutoRead { get; set; }

       /// <summary>
       ///自动读取间隔
       /// </summary>
       [Display(Name ="自动读取间隔")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ReadInterval { get; set; }

       /// <summary>
       ///自动读取请求内容
       /// </summary>
       [Display(Name ="自动读取请求内容")]
       [MaxLength(2800)]
       [Column(TypeName="nvarchar(2800)")]
       [Editable(true)]
       public string ReadRequestData { get; set; }

       /// <summary>
       ///是否有效
       /// </summary>
       [Display(Name ="是否有效")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int IsValid { get; set; }

       /// <summary>
       ///创建用户
       /// </summary>
       [Display(Name ="创建用户")]
       [Column(TypeName="bigint")]
       public long? CreateId { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改用户
       /// </summary>
       [Display(Name ="修改用户")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(512)]
       [Column(TypeName="nvarchar(512)")]
       [Editable(true)]
       public string Remarks { get; set; }

       [Display(Name ="服务配置")]
       [ForeignKey("DataServeId")][Navigate(NavigateType.OneToMany,nameof(DataServeId),nameof(DataServeId))]
       public List<Mds_DataServeConfig> Mds_DataServeConfig { get; set; }


       
    }
}